home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 2004 August
/
Hrac_72_2004-08_dvd.iso
/
dema
/
Rapid Gun
/
rg_setup.exe
/
common
/
common.fxh
< prev
next >
Wrap
Text File
|
2004-04-21
|
1KB
|
16 lines
// LF2 Engine
// (C) 2002-3 7FX
//---------------------------------------------------------------------------
// Header file with common defs
//---------------------------------------------------------------------------
// Declares variables for texture sampler filters
#define DECLARE_TEX_SAMPLER_VALUES const int cMipFlt : TextureMipFilter = 1; const int cMagFlt : TextureMagFilter = 2; const int cMinFlt : TextureMinFilter = 2; /*POINT, LINEAR, LINEAR*/ const int cAniso : TextureAnisotropy = 1; const int cAddr : TextureAddress = 1 /*D3DTADDRESS_WRAP*/
// Sets texture sampler filters
#define SET_TEX_SAMPLER_FILTERS MipFilter = <cMipFlt>; MinFilter = <cMinFlt>; MagFilter = <cMagFlt>; MaxAnisotropy = <cAniso>
// Sets texture sampler address modes
#define SET_TEX_SAMPLER_ADDRESS AddressU = <cAddr>; AddressV = <cAddr>
// Sets all tex sampler values
#define SET_TEX_SAMPLER_VALUES SET_TEX_SAMPLER_FILTERS; SET_TEX_SAMPLER_ADDRESS
//---------------------------------------------------------------------------